View Javadoc

1   package net.sourceforge.simplegamenet.framework;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import net.sourceforge.simplegamenet.chess.ChessFactory;
6   import net.sourceforge.simplegamenet.connectaline.CALFactory;
7   import net.sourceforge.simplegamenet.dice.DiceFactory;
8   import net.sourceforge.simplegamenet.framework.gui.SimpleGameNetFrame;
9   
10  /***
11   * User: Geoffrey Date: 25-mei-2004 Time: 21:41:31
12   */
13  public class StaticLoadingMain {
14  
15      public static void main(String[] args) {
16          List gamesFactoriesList = new ArrayList(8);
17          gamesFactoriesList.add(new ChessFactory());
18          gamesFactoriesList.add(new CALFactory());
19          gamesFactoriesList.add(new DiceFactory());
20  //        gamesFactoriesList.add(new MMFactory());
21  //        gamesFactoriesList.add(new SMFactory());
22          GameFactoryManager.loadGamesStaticly(gamesFactoriesList);
23          SimpleGameNetFrame.createSimpleGameNetFrame();
24      }
25  }